Present
data class Present(val animated: Boolean = true, val presentationStyle: UIModalPresentationStyle = UIModalPresentationAutomatic, val transitionStyle: UIModalTransitionStyle = UIModalTransitionStyleCoverVertical, val present: () -> UIViewController, val completion: () -> Unit? = null) : NavigationSpec
Lets the parent present a UIViewController using UIViewController.presentViewController.
Parameters
animated
Specifies whether transition should be animated
presentationStyle
The UIModalPresentationStyle to present the viewcontroller in. Defaults to UIModalPresentationAutomatic
transitionStyle
The UIModalTransitionStyle to transition to. Defaults to UIModalTransitionStyleCoverVertical
present
Function to create the UIViewController to present
completion
Optional function to call when presentation has completed